package com.air.designmodel.two.entity.son;

import com.air.designmodel.two.behavior.impl.FlyWithWings;
import com.air.designmodel.two.behavior.impl.Quack;
import com.air.designmodel.two.entity.father.Duck;

/**
 * @author shent
 */
public class MallardDuck extends Duck {
    public MallardDuck() {
        quackBehavior = new Quack();
        flyBehavior = new FlyWithWings();
    }

    @Override
    public void display() {
        System.out.println("MallardDuck is me");
    }
}
